package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.StoreMarketing;
import com.ecoolex.hotel.saas.entity.StoreMarketingExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface StoreMarketingMapper {
    long countByExample(StoreMarketingExample example);

    int deleteByExample(StoreMarketingExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(StoreMarketing record);

    int insertSelective(@Param("record") StoreMarketing record, @Param("selective") StoreMarketing.Column ... selective);

    StoreMarketing selectOneByExample(StoreMarketingExample example);

    List<StoreMarketing> selectByExample(StoreMarketingExample example);

    StoreMarketing selectByPrimaryKey(Integer id);

    StoreMarketing selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") StoreMarketing record, @Param("example") StoreMarketingExample example, @Param("selective") StoreMarketing.Column ... selective);

    int updateByExample(@Param("record") StoreMarketing record, @Param("example") StoreMarketingExample example);

    int updateByPrimaryKeySelective(@Param("record") StoreMarketing record, @Param("selective") StoreMarketing.Column ... selective);

    int updateByPrimaryKey(StoreMarketing record);

    int batchInsert(@Param("list") List<StoreMarketing> list);

    int batchInsertSelective(@Param("list") List<StoreMarketing> list, @Param("selective") StoreMarketing.Column ... selective);

    int logicalDeleteByExample(@Param("example") StoreMarketingExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}